#include "../Definitionen/define.h"
#include "../default/structures.h"
#include "func_info2.h"

void info_beta()
{
    /*Schraenke ausgeben*/
    printf("\nSchr\x84nke\n");
    printf("**************************************************\n");
    while(p_schrank_end)
    {
        /*Namen ausgeben*/
        printf("%s\n",p_schrank_end->name);

        /*NEXT Schrank*/
        p_schrank_end = p_schrank_end->prev_schrank;
    }

/*Ressourcen ausgeben*/
    printf("\n%-30s%10s%11s","Ressourcen","Kosten","Einheit\n");
    printf("**************************************************\n");
    while(p_ressource_end)
    {
        /*Ressourceart*/
        printf("%-29s%10.2f",p_ressource_end->name,p_ressource_end->price);
        if(p_ressource_end->entity=='M')
        {
            printf("%11s\n","m\xFD");
        }
        else if(p_ressource_end->entity=='m')
        {
            printf("%11s\n","m");
        }
        else
        {
            printf("%6d Stk.\n",p_ressource_end->entity);
        }
        /*PREV Ressource*/
        p_ressource_end = p_ressource_end->prev_ressource;
    }

/*Arbeitsschritte ausgeben*/
    printf("\n%-30s%5s%6s%10s\n","Arbeitsschritt","Zeit","Kosten","Ressourcen");
    printf("**************************************************\n");
    while(p_step_end)
    {
        printf("%-30s%5d%6.2f%10s\n",p_step_end->name,p_step_end->time,p_step_end->price,p_step_end->ressource);
        p_step_end = p_step_end->prev_step;
    }
}
